#!/usr/bin/python
import twitter,xmlrpclib
from HTMLParser import HTMLParser
from xml.sax import ContentHandler

class MyHTMLParser(HTMLParser):
	def handle_starttag(self, tag, attrs):
		print "Encountered the beginning of a %s tag" % tag
	
	def handle_endtag(self, tag):
		print "Encountered the end of a %s tag" % tag

api = twitter.Api()
statuses = api.GetPublicTimeline()
print [s.user.name for s in statuses]
